<template>
    <div>
        <!-- 使用组件 -->
        <Title text="首页" @toHome="toRouter($event,'首页')" />
        <!-- <div class="div-box" @click=""></div> -->
    </div>
</template>
<script>
// 引入组件
import Title from '@/components/Title.vue'
export default {
    // 注册组件
    components: {
        Title
    },
    methods: {
        toRouter(def, newData) {
            console.log(def, newData)
        }
    }
}
</script>